From: Florian Müllner Date: Mon, 20 Sep 2010 12:36:30 +0000 (+0200) Subject: Use gdk_error_trap_pop_ignore() where appropriate X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9738 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fd5f30ab0d2f1974afabd58b350ccaca93468404;p=gnome-shell.git Use gdk_error_trap_pop_ignore() where appropriate gdk_error_trap_pop() has been marked with G_GNUC_WARN_UNUSED_RESULT, so use gdk_error_trap_pop_ignore() whenever the return value is ignored. --- diff --git a/src/tray/na-tray-child.c b/src/tray/na-tray-child.c index 5150bb78e..3041cff9d 100644 --- a/src/tray/na-tray-child.c +++ b/src/tray/na-tray-child.c @@ -251,7 +251,7 @@ na_tray_child_new (GdkScreen *screen, gdk_error_trap_push (); result = XGetWindowAttributes (xdisplay, icon_window, &window_attributes); - gdk_error_trap_pop (); + gdk_error_trap_pop_ignored (); if (!result) /* Window already gone */ return NULL; @@ -437,7 +437,7 @@ na_tray_child_force_redraw (NaTrayChild *child) * since that is asynchronous. */ XSync (xdisplay, False); - gdk_error_trap_pop (); + gdk_error_trap_pop_ignored (); #else /* Hiding and showing is the safe way to do it, but can result in more * flickering. @@ -481,7 +481,7 @@ _get_wmclass (Display *xdisplay, gdk_error_trap_push (); XGetClassHint (xdisplay, xwindow, &ch); - gdk_error_trap_pop (); + gdk_error_trap_pop_ignored (); if (res_class) *res_class = NULL;